package com.arrake.pojo;

public class DocxText {
    private String preText;
    private String sufText;
    private boolean isZuoZhongHao;

    public DocxText() {
        sufText = "</w:t>\n" +
                "            </w:r>\n";
        isZuoZhongHao = false;
    }

    public void setText(String text) {
        preText = "<w:r>\n" +
                "<w:t>"+text;
    }
    public void setZuoZhongHao() {
        preText = preText + "<w:rPr>\n" +
                "                    <w:em w:val=\"dot\"/>\n" +
                "                </w:rPr>\n";
        isZuoZhongHao = true;
    }

    public String getPreText() {
        return preText;
    }

    public String getSufText() {
        return sufText;
    }

    @Override
    public String toString() {
        return "DocxText{" +
                "preText='" + preText + '\'' +
                ", sufText='" + sufText + '\'' +
                ", isZuoZhongHao=" + isZuoZhongHao +
                '}';
    }
}
